﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DangNhap.aspx.cs" Inherits="DangNhap" Title="Untitled Page" %>

<%@ Register src="LoaiSach_TieuDe.ascx" tagname="LoaiSach_TieuDe" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .style3
    {
        width: 100%;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="style3">
        <tr>
            <td colspan="4">
                <img alt="" src="HinhGiaoDienWeb/0.PNG" style="width: 10px; height: 10px" /></td>
        </tr>
        <tr>
            <td>
                <img alt="" src="HinhGiaoDienWeb/0.PNG" style="width: 10px; height: 10px" /></td>
            <td align="left" valign="top" width="67px">
                <img alt="" src="HinhGiaoDienWeb/Sao.gif" style="width: 66px; height: 61px" /></td>
            <td align="left" valign="top">
                <img alt="" src="HinhGiaoDienWeb/DangNhap.png" 
                    style="width: 247px; height: 62px" /></td>
            <td align="right" valign="top" width="11px">
                <img alt="" src="HinhGiaoDienWeb/0.PNG" style="width: 10px; height: 10px" /></td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <table class="style3">
    <tr>
        <td align="left" valign="top" width="50px">
            <img alt="" src="HinhGiaoDienWeb/KhoangTrongDK.PNG" 
                style="width: 32px; height: 32px" /></td>
        <td align="left" valign="top" width="101px">
            <asp:Login ID="Login1" runat="server" DestinationPageUrl="~/TrangChu.aspx" 
                FailureText="Tên đăng nhập hoặc mật khẩu chưa đúng. Vui lòng nhập lại!">
                <LayoutTemplate>
                    <table border="0" cellpadding="1" cellspacing="0" 
                        style="border-collapse:collapse;">
                        <tr>
                            <td valign="top">
                                <table border="0" cellpadding="0">
                                    <tr>
                                        <td align="center" colspan="2">
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="font-size: large; color: #00CCFF; font-weight: bold;">
                                            Tên đăng nhập:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="UserName" runat="server" Font-Size="Large" 
                                                ForeColor="#00CCFF" BackColor="#FCF8FD" BorderColor="#00CCFF" 
                                                BorderStyle="Dotted" Font-Bold="True" ontextchanged="UserName_TextChanged"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                                ToolTip="User Name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" colspan="2" style="font-size: large; color: #00CCFF">
                                            <img alt="" src="HinhGiaoDienWeb/0.PNG" style="width: 10px; height: 10px" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="font-size: large; color: #00CCFF; font-weight: bold;">
                                            Mật khẩu:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="Password" runat="server" Font-Size="Large" 
                                                ForeColor="#00CCFF" TextMode="Password" BackColor="#FCF8FD" 
                                                BorderColor="#00CCFF" BorderStyle="Dotted" Font-Bold="True"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                ControlToValidate="Password" ErrorMessage="Password is required." 
                                                ToolTip="Password is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" colspan="2" style="font-size: large; color: #00CCFF">
                                            <img alt="" src="HinhGiaoDienWeb/0.PNG" style="width: 10px; height: 10px" /></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:CheckBox ID="RememberMe" runat="server" ForeColor="#00CCFF" 
                                                Text="Giữ trạng thái đăng nhập" Font-Bold="True" Font-Size="Large" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2" style="color:Red;">
                                            <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2" style="color: Red;">
                                            <img alt="" src="HinhGiaoDienWeb/0.PNG" style="width: 10px; height: 10px" /></td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2">
                                            <asp:Button ID="LoginButton" runat="server" CommandName="Login" 
                                                Font-Bold="True" Font-Size="Medium" ForeColor="#00CCFF" Text="Đăng nhập" 
                                                ValidationGroup="Login1" onclick="LoginButton_Click" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2">
                                            <img alt="" src="HinhGiaoDienWeb/0.PNG" style="width: 10px; height: 10px" /></td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2">
                                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/DangKy.aspx">Đăng 
                                            ký tài khoản mới</asp:HyperLink>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2">
                                            <asp:HyperLink ID="HyperLink15" runat="server" NavigateUrl="~/QuenMatKhau.aspx">Quên 
                                            mật khẩu</asp:HyperLink>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </LayoutTemplate>
            </asp:Login>
        </td>
        <td align="right" valign="top" width="50px">
            &nbsp;</td>
    </tr>
    </table>
</asp:Content>

